<template>
  <div id="bzUnitDetail">
    {{loadingtext}}<br>
      <el-tabs v-model="activeName1" type="border-card" v-if="!loadingtext">
        <el-tab-pane label="部门概况" name="unitInfo">
          <!-- {{ unitInfo }} -->
          <div v-if="sourceTable==='depart'">
            <div v-if="unitInfo.dclass!=='1e'">
              <table cellspacing="0" cellpadding="0" class="mytable">
                <tr>
                  <td colspan="4"><h1>基本信息</h1></td>
                </tr>
                <tr>
                  <th>机构全称</th><td>{{ unitInfo.dname }}</td><th>其他全称</th><td>{{ unitInfo.dname2 }}</td>
                </tr>
                <tr>
                  <th>机构规格</th><td>{{ unitInfo.dgradeText }}</td><th>批准设立文号</th><td>{{ unitInfo.ddocNo }}</td>
                </tr>
                <tr>
                  <th>机构类别</th><td colspan="3">{{ unitInfo.dclassText }}</td>
                </tr>
                <tr>
                  <th>行政编制数</th><td>{{ mydata.xzbz }}</td><th>行政在编人数</th><td>{{ mydata.xzzb }}</td>
                </tr>
                <tr>
                  <th>二级内设机构数</th><td colspan="3">{{ unitInfo.daog3 }}</td>
                </tr>
                <tr>
                  <th>主要职责</th><td colspan="3">{{ jgznDesp }}</td>
                </tr>
              </table>
            </div>
            <div v-else>
              <h1></h1>
              <table cellspacing="0" cellpadding="0" class="mytable">
                <tr>
                  <td colspan="4"><h1>基本信息</h1></td>
                </tr>
                <tr>
                  <th>机构全称</th><td>{{ unitInfo.dname }}</td><th>其他全称</th><td>{{ unitInfo.dname2 }}</td>
                </tr>
                <tr>
                  <th>机构规格</th><td>{{ unitInfo.dgradeText }}</td><th>批准设立文号</th><td>{{ unitInfo.ddocNo }}</td>
                </tr>
                <tr>
                  <th>统一社会信用代码</th><td>{{ unifyCode }}</td>
                  <th>编制使用层次</th><td>{{ bzsycj }}</td>
                </tr>
                <tr>
                  <th>系统类别</th><td colspan="3">国务院</td>
                </tr>
                <tr>
                  <td colspan="4"><h1>机构编制职数情况</h1></td>
                </tr>
                <tr>
                  <th>批准内设机构数</th><td>{{ countNsjgs }}</td><th>实有内设机构数</th><td>{{ countNsjgsShiyou }}</td>
                </tr>
                <tr>
                  <th>批准其他工作机构数</th><td>{{ countQtgzjgs }}</td><th>实有其他工作机构数</th><td>{{ countNsjgsShiyouQita }}</td>
                </tr>
                <tr>
                  <th>行政编制数</th><td>{{ mydata.xzbz }}</td><th>行政在编人数</th><td>{{ mydata.xzzb }}</td>
                </tr>
                <template v-if="lxfs&&JSON.stringify(lxfs)!=='{}'">
                  <tr>
                    <td colspan="4"><h1>联系方式</h1></td>
                  </tr>
                  <tr>
                    <th>通讯地址</th><td>{{ lxfs.lxfsTxdz }}</td><th>邮政编码</th><td>{{ lxfs.lxfsYzbm }}</td>
                  </tr>
                  <tr>
                    <th>联系人</th><td>{{ lxfs.lxfsLxr }}</td><th>固定电话</th><td>{{ lxfs.lxfsLxdh }}</td>
                  </tr>
                  <tr>
                    <th>中文域名1</th><td colspan="3">{{ lxfs.lxfsZwym1 }}</td>
                  </tr>
                  <tr>
                    <th>中文域名2</th><td colspan="3">{{ lxfs.lxfsZwym2 }}</td>
                  </tr>
                  <tr>
                    <th>英文域名1</th><td colspan="3">{{ lxfs.lxfsYwym1 }}</td>
                  </tr>
                  <tr>
                    <th>英文域名2</th><td colspan="3">{{ lxfs.lxfsYwym2 }}</td>
                  </tr>
                  <tr>
                    <th>备注</th><td colspan="3">{{ lxfs.lxfsBz}}</td>
                  </tr>
                </template>
              </table>
            </div>
          </div>
          <div v-else-if="sourceTable==='centre'">
            <table cellspacing="0" cellpadding="0" class="mytable">
              <tr>
                <td colspan="4"><h1>基本信息</h1></td>
              </tr>
              <tr>
                <th>机构全称</th><td>{{ unitInfo.cname }}</td><th>其他全称</th><td>{{ unitInfo.cname2 }}</td>
              </tr>
              <tr>
                <th>规范简称</th><td>{{ unitInfo.cnameGfjc }}</td><th>机构规格</th><td>{{ unitInfo.cgradeText }}</td>
              </tr>
              <tr>
                <th>机构类别</th><td>{{ unitInfo.cclassText }}</td><th>批准设立文号</th><td>{{ unitInfo.cdocNo }}</td>
              </tr>
              <tr>
                <th>机构编码</th><td>{{ unitInfo.cjgbmText }}</td><th>统一社会信用代码</th><td>{{ unifyCode }}</td>
              </tr>
              <tr>
                <th>编制使用层次</th><td>{{ bzsycj }}</td><th>系统类别</th><td>国务院</td>
              </tr>
              <tr>
                <td colspan="4"><h1>机构编制职数情况</h1></td>
              </tr>
              <tr>
                <th>批准内设机构数</th><td>{{ countNsjgs }}</td><th>实有内设机构数</th><td>{{ countNsjgsShiyou }}</td>
              </tr>
              <tr>
                <th>批准其他工作机构数</th><td>{{ countQtgzjgs }}</td><th>实有其他工作机构数</th><td>{{ countNsjgsShiyouQita }}</td>
              </tr>
              <tr>
                <th>机关行政编制数</th><td>{{ mydata.xzbz }}</td><th>机关行政在编人数</th><td>{{ mydata.xzzb }}</td>
              </tr>
              <template v-if="lxfs&&JSON.stringify(lxfs)!=='{}'">
                <tr>
                  <td colspan="4"><h1>联系方式</h1></td>
                </tr>
                <tr>
                  <th>通讯地址</th><td>{{ lxfs.lxfsTxdz }}</td><th>邮政编码</th><td>{{ lxfs.lxfsYzbm }}</td>
                </tr>
                <tr>
                  <th>联系人</th><td>{{ lxfs.lxfsLxr }}</td><th>固定电话</th><td>{{ lxfs.lxfsLxdh }}</td>
                </tr>
                <tr>
                  <th>中文域名1</th><td colspan="3">{{ lxfs.lxfsZwym1 }}</td>
                </tr>
                <tr>
                  <th>中文域名2</th><td colspan="3">{{ lxfs.lxfsZwym2 }}</td>
                </tr>
                <tr>
                  <th>英文域名1</th><td colspan="3">{{ lxfs.lxfsYwym1 }}</td>
                </tr>
                <tr>
                  <th>英文域名2</th><td colspan="3">{{ lxfs.lxfsYwym2 }}</td>
                </tr>
                <tr>
                  <th>备注</th><td colspan="3">{{ lxfs.lxfsBz}}</td>
                </tr>
              </template>
            </table>
          </div>
          <div v-else-if="sourceTable==='centre_sy'">
            <table cellspacing="0" cellpadding="0" class="mytable">
              <tr>
                <td colspan="4"><h1>基本信息</h1></td>
              </tr>
              <tr>
                <th>单位全称</th><td>{{ unitInfo.mc }}</td><th>机构属性</th><td>{{ unitInfo.jgsxText }}</td>
              </tr>
              <tr>
                <th>其他全称</th><td>{{ unitInfo.demc }}</td><th>规范简称</th><td>{{ unitInfo.mcGfjc }}</td>
              </tr>
              <tr>
                <th>机构规格</th><td>{{ unitInfo.jgggText }}</td><th>主管部门（举办单位）</th><td>{{ unitInfo.zgbm }}</td>
              </tr>
              <tr>
                <th>事业单位类别</th><td>{{ unitInfo.sydwlxText }}</td><th>经费形式</th><td>{{ unitInfo.jfxText }}</td>
              </tr>
              <tr>
                <!-- <th style="vertical-align:middle">行业类别</th><td style="vertical-align:middle">{{ unitInfo.hylbText }}</td> -->
                <th style="vertical-align:middle">京内京外</th><td style="vertical-align:middle">{{ unitInfo.jnjw==0?'京内':'京外' }}</td>
                <th style="vertical-align:middle">是否人员参照公务员法管理</th><td style="vertical-align:middle">{{ unitInfo.ifCg?'是':'否' }}</td>
              </tr>
              <tr>
                <th>单位设立时间</th><td>{{ fclsj(unitInfo.clsj) }}</td><th>批准设立文号</th><td>{{ unitInfo.jgbzwh }}</td>
              </tr>
              <tr>
                <th>法定代表人</th><td>{{ unitInfo.incorporator }}</td><th>统一社会信用代码</th><td>{{ unifyCode }}</td>
              </tr>
              <tr>
                <th>编制使用层次</th><td>{{ bzsycj }}</td>
                <th>系统类别</th><td>国务院</td>
              </tr>
              <tr>
                <td colspan="4"><h1>单位编制概况</h1></td>
              </tr>
              <tr>
                <th>批准内设机构数</th><td>{{ countNsjgs }}</td><th>实有内设机构数</th><td>{{ countNsjgsShiyou }}</td>
              </tr>
              <tr>
                <th>批准其他工作机构数</th><td>{{ countQtgzjgs }}</td><th>实有其他工作机构数</th><td>{{ countNsjgsShiyouQita }}</td>
              </tr>
              <tr>
                <th>事业编制数</th><td>{{ mydata.sybz }}</td><th>在编人数</th><td>{{ mydata.syzb }}</td>
              </tr>
              <template v-if="lxfs&&JSON.stringify(lxfs)!=='{}'">
                <tr>
                  <td colspan="4"><h1>联系方式</h1></td>
                </tr>
                <tr>
                  <th>通讯地址</th><td>{{ lxfs.lxfsTxdz }}</td><th>邮政编码</th><td>{{ lxfs.lxfsYzbm }}</td>
                </tr>
                <tr>
                  <th>联系人</th><td>{{ lxfs.lxfsLxr }}</td><th>固定电话</th><td>{{ lxfs.lxfsLxdh }}</td>
                </tr>
                <tr>
                  <th>中文域名1</th><td colspan="3">{{ lxfs.lxfsZwym1 }}</td>
                </tr>
                <tr>
                  <th>中文域名2</th><td colspan="3">{{ lxfs.lxfsZwym2 }}</td>
                </tr>
                <tr>
                  <th>英文域名1</th><td colspan="3">{{ lxfs.lxfsYwym1 }}</td>
                </tr>
                <tr>
                  <th>英文域名2</th><td colspan="3">{{ lxfs.lxfsYwym2 }}</td>
                </tr>
                <tr>
                  <th>备注</th><td colspan="3">{{ lxfs.lxfsBz}}</td>
                </tr>
              </template>
            </table>
          </div>
        </el-tab-pane>
        <el-tab-pane label="机构编制部门批复的台帐" name="centre_bd" v-if="sourceTable==='centre'||sourceTable==='centre_sy'" >
          <section class="wboxd">
            <el-table v-if="sourceTable==='centre'" :data="bd" highlight-current-row style="width: 100%;border-right:1px solid #74A6CC" border show-summary sum-text=" ">
              <el-table-column type="index" label="序号" width="20" align="center" />
              <el-table-column prop="mc" label="批文名称" width="200"/>
              <el-table-column prop="pzwh" label="批准文号" width="80"/>
              <el-table-column prop="shijian" label="批准时间" width="75" align="center">
                <template slot-scope="scope">
                  {{fclsj(scope.row.shijian)}}
                </template>
              </el-table-column>
              <el-table-column prop="caog2" label="批准内设机构数" width="30" align="center">
                <template slot-scope="scope">
                  {{scope.row.caog2?scope.row.caog2:''}}
                </template>
              </el-table-column>
              <el-table-column prop="qtgzjgs" label="批准其他工作机构数" width="30" align="center">
                <template slot-scope="scope">
                  {{scope.row.qtgzjgs?scope.row.qtgzjgs:''}}
                </template>
              </el-table-column>
              <el-table-column prop="bmldbz" label="部门领导职数" width="30" align="center">
                <template slot-scope="scope">
                  {{scope.row.bmldbz?scope.row.bmldbz:''}}
                </template>
              </el-table-column>
              <el-table-column label="部门其他领导职数" align="center">
                <el-table-column prop="sum1" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum1?scope.row.sum1:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZzbzr" label="政治部主任" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZzbzr?scope.row.bmqtZzbzr:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZs" label="总师" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZs?scope.row.bmqtZs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZy" label="专员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZy?scope.row.bmqtZy:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtJwsj" label="纪委书记" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtJwsj?scope.row.bmqtJwsj:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtQt" label="其他" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtQt?scope.row.bmqtQt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column label="内设机构其他领导职数" align="center">
                <el-table-column prop="sum2" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum2?scope.row.sum2:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZzbzr" label="政治部主任" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZzbzr?scope.row.nsqtZzbzr:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZs" label="总师" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZs?scope.row.nsqtZs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZy" label="专员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZy?scope.row.nsqtZy:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtJwsj" label="纪委书记" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtJwsj?scope.row.nsqtJwsj:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtQt" label="其他" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtQt?scope.row.nsqtQt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column prop="nsldbz" label="内设机构领导职数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsldbz?scope.row.nsldbz:''}}
                  </template>
                </el-table-column>
              <el-table-column label="机关行政编制" align="center">
                <el-table-column prop="sum3" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum3?scope.row.sum3:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="cayjgxzSt" label="原机关行政编制人员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.cayjgxzSt?scope.row.cayjgxzSt:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="caewSt" label="两委人员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.caewSt?scope.row.caewSt:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="caypSt" label="援派人员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.caypSt?scope.row.caypSt:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="caltSt" label="离退休干部工作人员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.caltSt?scope.row.caltSt:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="caqtSt" label="其他编制人员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.caqtSt?scope.row.caqtSt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column label="驻外编制数" align="center">
                <el-table-column prop="sum4" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum4?scope.row.sum4:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="cazwslgSt" label="驻外外交编制数" width="30" align="center" >
                  <template slot-scope="scope">
                    {{scope.row.cazwslgSt?scope.row.cazwslgSt:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="cazwfwjjgSt" label="驻外非外交编制数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.cazwfwjjgSt?scope.row.cazwfwjjgSt:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="cazwcbSt" label="驻外储备编制数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.cazwcbSt?scope.row.cazwcbSt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column prop="cacgpcSt" label="垂管派出编制" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.cacgpcSt?scope.row.cacgpcSt:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="cazyxszfzxSt" label="中央部门下属政法专项编制" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.cazyxszfzxSt?scope.row.cazyxszfzxSt:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="casySt" label="机关事业编制" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.casySt?scope.row.casySt:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="zhaiyao" label="变动摘要" min-width="50" />
            </el-table>
            <el-table v-else-if="sourceTable==='centre_sy'" :data="bd" highlight-current-row style="width: 100%;border-right:1px solid #74A6CC" border show-summary sum-text=" ">
              <el-table-column type="index" label="序号" width="20" align="center" />
              <el-table-column prop="mc" label="批文名称" width="200" />
              <el-table-column prop="jgbzwh" label="批准文号" width="80" />
              <el-table-column prop="shijian" label="批准时间" width="75" align="center">
                <template slot-scope="scope">
                  {{fclsj(scope.row.shijian)}}
                </template>
              </el-table-column>
              <el-table-column prop="nsjgs" label="批准内设机构数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsjgs?scope.row.nsjgs:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="qtgzjgs" label="批准其他工作机构数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.qtgzjgs?scope.row.qtgzjgs:''}}
                  </template>
                </el-table-column>
              <el-table-column label="按经费形式编制数" align="center">
                <el-table-column prop="sum0" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum0?scope.row.sum0:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="czbkbzrs" label="财政补助" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.czbkbzrs?scope.row.czbkbzrs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="jfzlbzrs" label="经费自理" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.jfzlbzrs?scope.row.jfzlbzrs:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column prop="bmldbz" label="单位领导职数" width="30" align="center">
                <template slot-scope="scope">
                  {{scope.row.bmldbz?scope.row.bmldbz:''}}
                </template>
              </el-table-column>
              <el-table-column label="单位其他领导职数" align="center">
                <el-table-column prop="sum1" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum1?scope.row.sum1:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZzbzr" label="政治部主任" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZzbzr?scope.row.bmqtZzbzr:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZs" label="总师" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZs?scope.row.bmqtZs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZy" label="专员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZy?scope.row.bmqtZy:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtJwsj" label="纪委书记" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtJwsj?scope.row.bmqtJwsj:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtQt" label="其他" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtQt?scope.row.bmqtQt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column label="内设机构其他领导职数" align="center">
                <el-table-column prop="sum2" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum2?scope.row.sum2:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZzbzr" label="政治部主任" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZzbzr?scope.row.nsqtZzbzr:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZs" label="总师" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZs?scope.row.nsqtZs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZy" label="专员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZy?scope.row.nsqtZy:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtJwsj" label="纪委书记" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtJwsj?scope.row.nsqtJwsj:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtQt" label="其他" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtQt?scope.row.nsqtQt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column prop="nsldbz" label="内设机构领导职数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsldbz?scope.row.nsldbz:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="zhaiyao" label="变动摘要" min-width="50" />
            </el-table>
          </section>
        </el-tab-pane>
        <el-tab-pane label="部门批复的台帐" name="centre_dwbd" v-if="sourceTable==='centre'||sourceTable==='centre_sy'||sourceTable==='depart'&&unitInfo.dclass==='1e'">
          <section class="wboxd">
            <el-table v-if="sourceTable==='centre'" :data="dwbd" highlight-current-row style="width: 100%;border-right:1px solid #74A6CC" border show-summary sum-text=" ">
              <el-table-column type="index" label="序号" width="20" align="center" />
              <el-table-column prop="mc" label="批文名称" width="200" />
              <el-table-column prop="pzwh" label="批准文号" width="80"/>
              <el-table-column prop="shijian" label="批准时间" width="75" align="center">
                <template slot-scope="scope">
                  {{fclsj(scope.row.shijian)}}
                </template>
              </el-table-column>
              <el-table-column prop="caog2" label="批准内设机构数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.caog2?scope.row.caog2:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="qtgzjgs" label="批准其他工作机构数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.qtgzjgs?scope.row.qtgzjgs:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="bmldbz" label="部门领导职数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmldbz?scope.row.bmldbz:''}}
                  </template>
                </el-table-column>
              <el-table-column label="部门其他领导职数" align="center">
                <el-table-column prop="sum1" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum1?scope.row.sum1:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZzbzr" label="政治部主任" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZzbzr?scope.row.bmqtZzbzr:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZs" label="总师" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZs?scope.row.bmqtZs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZy" label="专员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZy?scope.row.bmqtZy:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtJwsj" label="纪委书记" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtJwsj?scope.row.bmqtJwsj:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtQt" label="其他" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtQt?scope.row.bmqtQt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column label="内设机构其他领导职数" align="center">
                <el-table-column prop="sum2" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum2?scope.row.sum2:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZzbzr" label="政治部主任" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZzbzr?scope.row.nsqtZzbzr:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZs" label="总师" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZs?scope.row.nsqtZs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZy" label="专员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZy?scope.row.nsqtZy:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtJwsj" label="纪委书记" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtJwsj?scope.row.nsqtJwsj:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtQt" label="其他" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtQt?scope.row.nsqtQt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column prop="nsldbz" label="内设机构领导职数" width="30" align="center">
                <template slot-scope="scope">
                  {{scope.row.nsldbz?scope.row.nsldbz:''}}
                </template>
              </el-table-column>
              <el-table-column label="机关行政编制" align="center">
                <el-table-column prop="sum3" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum3?scope.row.sum3:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="cayjgxzSt" label="原机关行政编制人员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.cayjgxzSt?scope.row.cayjgxzSt:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="caewSt" label="两委人员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.caewSt?scope.row.caewSt:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="caypSt" label="援派人员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.caypSt?scope.row.caypSt:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="caltSt" label="离退休干部工作人员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.caltSt?scope.row.caltSt:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="caqtSt" label="其他编制人员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.caqtSt?scope.row.caqtSt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column prop="cacgpcSt" label="垂管派出编制" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.cacgpcSt?scope.row.cacgpcSt:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="cazyxszfzxSt" label="中央部门下属政法专项编制" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.cazyxszfzxSt?scope.row.cazyxszfzxSt:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="casySt" label="机关事业编制" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.casySt?scope.row.casySt:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="zhaiyao" label="变动摘要" min-width="80" align="center" />
            </el-table>
            <el-table v-else-if="sourceTable==='centre_sy'" :data="dwbd" highlight-current-row style="width: 100%;border-right:1px solid #74A6CC" border show-summary sum-text=" ">
              <el-table-column type="index" label="序号" width="20" align="center" />
              <el-table-column prop="mc" label="批文名称" width="200" />
              <el-table-column prop="jgbzwh" label="批准文号" width="80" />
              <el-table-column prop="shijian" label="批准时间" width="75" align="center">
                <template slot-scope="scope">
                  {{fclsj(scope.row.shijian)}}
                </template>
              </el-table-column>
              <el-table-column prop="nsjgs" label="批准内设机构数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsjgs?scope.row.nsjgs:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="qtgzjgs" label="批准其他工作机构数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.qtgzjgs?scope.row.qtgzjgs:''}}
                  </template>
                </el-table-column>
              <el-table-column label="按经费形式编制数" width="30" align="center">
                <el-table-column prop="sum0" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum0?scope.row.sum0:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="czbkbzrs" label="财政补助" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.czbkbzrs?scope.row.czbkbzrs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="jfzlbzrs" label="经费自理" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.jfzlbzrs?scope.row.jfzlbzrs:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column prop="bmldbz" label="单位领导职数" width="30" align="center">
                <template slot-scope="scope">
                  {{scope.row.bmldbz?scope.row.bmldbz:''}}
                </template>
              </el-table-column>
              <el-table-column label="单位其他领导职数" align="center">
                <el-table-column prop="sum1" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum1?scope.row.sum1:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZzbzr" label="政治部主任" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZzbzr?scope.row.bmqtZzbzr:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZs" label="总师" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZs?scope.row.bmqtZs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZy" label="专员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZy?scope.row.bmqtZy:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtJwsj" label="纪委书记" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtJwsj?scope.row.bmqtJwsj:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtQt" label="其他" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtQt?scope.row.bmqtQt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column label="内设机构其他领导职数" align="center">
                <el-table-column prop="sum2" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum2?scope.row.sum2:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZzbzr" label="政治部主任" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZzbzr?scope.row.nsqtZzbzr:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZs" label="总师" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZs?scope.row.nsqtZs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZy" label="专员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZy?scope.row.nsqtZy:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtJwsj" label="纪委书记" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtJwsj?scope.row.nsqtJwsj:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtQt" label="其他" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtQt?scope.row.nsqtQt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column prop="nsldbz" label="内设机构领导职数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsldbz?scope.row.nsldbz:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="zhaiyao" label="变动摘要" min-width="80" />
            </el-table>
            <el-table v-else-if="sourceTable==='depart'" :data="dwbd" highlight-current-row style="width: 100%;border-right:1px solid #74A6CC" border show-summary sum-text=" ">
              <el-table-column type="index" label="序号" width="20" align="center" />
              <el-table-column prop="mc" label="批文名称" width="200" />
              <el-table-column prop="pzwh" label="批准文号" width="80" />
              <el-table-column prop="shijian" label="批准时间" width="75" align="center">
                <template slot-scope="scope">
                  {{fclsj(scope.row.shijian)}}
                </template>
              </el-table-column>
              <el-table-column prop="caog2" label="批准内设机构数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.caog2?scope.row.caog2:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="qtgzjgs" label="批准其他工作机构数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.qtgzjgs?scope.row.qtgzjgs:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="bmldbz" label="部门领导职数" width="30" align="center" >
                  <template slot-scope="scope">
                    {{scope.row.bmldbz?scope.row.bmldbz:''}}
                  </template>
                </el-table-column>
              <el-table-column label="部门其他领导职数" align="center">
                <el-table-column prop="sum1" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum1?scope.row.sum1:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZzbzr" label="政治部主任" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZzbzr?scope.row.bmqtZzbzr:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZs" label="总师" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZs?scope.row.bmqtZs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtZy" label="专员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtZy?scope.row.bmqtZy:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtJwsj" label="纪委书记" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtJwsj?scope.row.bmqtJwsj:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="bmqtQt" label="其他" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.bmqtQt?scope.row.bmqtQt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column label="内设机构其他领导职数" align="center">
                <el-table-column prop="sum2" label="合计" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.sum2?scope.row.sum2:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZzbzr" label="政治部主任" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZzbzr?scope.row.nsqtZzbzr:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZs" label="总师" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZs?scope.row.nsqtZs:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtZy" label="专员" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtZy?scope.row.nsqtZy:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtJwsj" label="纪委书记" width="30" align="center" >
                  <template slot-scope="scope">
                    {{scope.row.nsqtJwsj?scope.row.nsqtJwsj:''}}
                  </template>
                </el-table-column>
                <el-table-column prop="nsqtQt" label="其他" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsqtQt?scope.row.nsqtQt:''}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column prop="nsldbz" label="内设机构领导职数" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.nsldbz?scope.row.nsldbz:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="cacgpcSt" label="垂管派出编制" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.cacgpcSt?scope.row.cacgpcSt:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="cazyxszfzxSt" label="中央部门下属政法专项编制" width="30" align="center">
                  <template slot-scope="scope">
                    {{scope.row.cazyxszfzxSt?scope.row.cazyxszfzxSt:''}}
                  </template>
                </el-table-column>
              <el-table-column prop="zhaiyao" label="变动摘要" min-width="80" />
            </el-table>
          </section>
        </el-tab-pane>
      </el-tabs>
  </div>
</template>
<script>
export default {
  watch: {
    jgsyCode: {
      handler (val) {
        console.log(val)
        if (val) {
          this.getDetail(val, this.sourceTable)
        }
      },
      immediate: true
    },
    sourceTable: {
      handler (val) {
        console.log(val)
        if (val) {
          this.getDetail(this.jgsyCode, val)
        }
      },
      immediate: true
    }
  },
  props: {
    jgsyCode: '',
    sourceTable: '',
    mydata: {}
  },
  data () {
    return {
      bd: [],
      dwbd: [],
      activeName1: 'unitInfo',
      unitInfo: {
      },
      allUnit: {
      },
      lxfs: {
      },
      loadingtext: '',
      unifyCode: '',
      jgznDesp: '',
      bzsycj: '',
      countNsjgs: '',
      countQtgzjgs: '',
      countNsjgsShiyou: '',
      countNsjgsShiyouQita: ''
    }
  },
  methods: {
    fclsj (date) {
      var mydate = new Date(date)
      var year = mydate.getFullYear()
      var month = mydate.getMonth() + 1
      var d = mydate.getDate()
      return year + '.' + month + '.' + d
    },
    handleClick (tab, event) {
      console.log(tab, event)
    },
    getDetail (jgsyCode, sourceTable) {
      this.activeName1 = 'unitInfo'
      this.loadingtext = '正在加载中，请稍后...'
      this.unitInfo = {}
      this.bd = []
      this.dwbd = []
      this.lxfs = {}
      this.jgznDesp = ''
      this.unifyCode = ''
      this.allUnit = {}
      this.$http
        .get(this.$http.defaults.zbbsmzAPI + `api/xml/getUnitDetails?jgsyCode=` + jgsyCode + `&sourceTable=` + sourceTable)
        .then(response => {
          if (response.data.success) {
            let alldata = response.data.result
            this.loadingtext = ''
            this.unifyCode = response.data.result.unifyCode
            this.bzsycj = response.data.result.bzsycj
            this.countNsjgs = response.data.result.countNsjgs
            this.countQtgzjgs = response.data.result.countQtgzjgs
            this.countNsjgsShiyou = response.data.result.countNsjgsShiyou
            this.countNsjgsShiyouQita = response.data.result.countNsjgsShiyouQita
            if (response.data.result.allUnit) {
              this.allUnit = response.data.result.allUnit
            }
            if (sourceTable === 'centre') {
              this.unitInfo = (alldata.centre && alldata.centre.length > 0) ? alldata.centre[0] : {}
              this.bd = alldata.centre_bd
              this.bd.forEach((item, index) => {
                if (item.bmldzsBd) {
                  this.bd[index].bmldbz = item.bmldzsBd.bmldzzbz + item.bmldzsBd.bmldfzbz
                  this.bd[index].nsldbz = item.bmldzsBd.nsldzzbz + item.bmldzsBd.nsldfzbz
                  this.bd[index].bmqtZzbzr = item.bmldzsBd.bmqtZzbzr
                  this.bd[index].bmqtZs = item.bmldzsBd.bmqtZs
                  this.bd[index].bmqtZy = item.bmldzsBd.bmqtZy
                  this.bd[index].bmqtJwsj = item.bmldzsBd.bmqtJwsj
                  this.bd[index].bmqtQt = item.bmldzsBd.bmqtQt
                  this.bd[index].nsqtZzbzr = item.bmldzsBd.nsqtZzbzr
                  this.bd[index].nsqtZs = item.bmldzsBd.nsqtZs
                  this.bd[index].nsqtZy = item.bmldzsBd.nsqtZy
                  this.bd[index].nsqtJwsj = item.bmldzsBd.nsqtJwsj
                  this.bd[index].nsqtQt = item.bmldzsBd.nsqtQt
                  this.bd[index].sum1 = item.bmldzsBd.bmqtZzbzr + item.bmldzsBd.bmqtZs + item.bmldzsBd.bmqtZy + item.bmldzsBd.bmqtJwsj + item.bmldzsBd.bmqtQt
                  this.bd[index].sum2 = item.bmldzsBd.nsqtZzbzr + item.bmldzsBd.nsqtZs + item.bmldzsBd.nsqtZy + item.bmldzsBd.nsqtJwsj + item.bmldzsBd.nsqtQt
                }
                this.bd[index].sum3 = item.cayjgxzSt + item.caewSt + item.caypSt + item.caltSt + item.caqtSt
                this.bd[index].sum4 = item.cazwslgSt + item.cazwfwjjgSt + item.cazwcbSt
              })
              this.dwbd = alldata.centre_dwbd
              this.dwbd.forEach((item, index) => {
                if (item.bmldzsBd) {
                  this.dwbd[index].bmldbz = item.bmldzsBd.bmldzzbz + item.bmldzsBd.bmldfzbz
                  this.dwbd[index].nsldbz = item.bmldzsBd.nsldzzbz + item.bmldzsBd.nsldfzbz
                  this.dwbd[index].bmqtZzbzr = item.bmldzsBd.bmqtZzbzr
                  this.dwbd[index].bmqtZs = item.bmldzsBd.bmqtZs
                  this.dwbd[index].bmqtZy = item.bmldzsBd.bmqtZy
                  this.dwbd[index].bmqtJwsj = item.bmldzsBd.bmqtJwsj
                  this.dwbd[index].bmqtQt = item.bmldzsBd.bmqtQt
                  this.dwbd[index].nsqtZzbzr = item.bmldzsBd.nsqtZzbzr
                  this.dwbd[index].nsqtZs = item.bmldzsBd.nsqtZs
                  this.dwbd[index].nsqtZy = item.bmldzsBd.nsqtZy
                  this.dwbd[index].nsqtJwsj = item.bmldzsBd.nsqtJwsj
                  this.dwbd[index].nsqtQt = item.bmldzsBd.nsqtQt
                  this.dwbd[index].sum1 = item.bmldzsBd.bmqtZzbzr + item.bmldzsBd.bmqtZs + item.bmldzsBd.bmqtZy + item.bmldzsBd.bmqtJwsj + item.bmldzsBd.bmqtQt
                  this.dwbd[index].sum2 = item.bmldzsBd.nsqtZzbzr + item.bmldzsBd.nsqtZs + item.bmldzsBd.nsqtZy + item.bmldzsBd.nsqtJwsj + item.bmldzsBd.nsqtQt
                }
                this.dwbd[index].sum3 = item.cayjgxzSt + item.caewSt + item.caypSt + item.caltSt + item.caqtSt
                this.dwbd[index].sum4 = item.cazwslgSt + item.cazwfwjjgSt + item.cazwcbSt
              })
            } else if (sourceTable === 'centre_sy') {
              this.unitInfo = (alldata.centre_sy && alldata.centre_sy.length > 0) ? alldata.centre_sy[0] : {}
              this.bd = alldata.centre_sy_bd
              this.bd.forEach((item, index) => {
                if (item.bmldzsBd) {
                  this.bd[index].bmldbz = item.bmldzsBd.bmldzzbz + item.bmldzsBd.bmldfzbz
                  this.bd[index].nsldbz = item.bmldzsBd.nsldzzbz + item.bmldzsBd.nsldfzbz
                  this.bd[index].bmqtZzbzr = item.bmldzsBd.bmqtZzbzr
                  this.bd[index].bmqtZs = item.bmldzsBd.bmqtZs
                  this.bd[index].bmqtZy = item.bmldzsBd.bmqtZy
                  this.bd[index].bmqtJwsj = item.bmldzsBd.bmqtJwsj
                  this.bd[index].bmqtQt = item.bmldzsBd.bmqtQt
                  this.bd[index].nsqtZzbzr = item.bmldzsBd.nsqtZzbzr
                  this.bd[index].nsqtZs = item.bmldzsBd.nsqtZs
                  this.bd[index].nsqtZy = item.bmldzsBd.nsqtZy
                  this.bd[index].nsqtJwsj = item.bmldzsBd.nsqtJwsj
                  this.bd[index].nsqtQt = item.bmldzsBd.nsqtQt
                  this.bd[index].sum1 = item.bmldzsBd.bmqtZzbzr + item.bmldzsBd.bmqtZs + item.bmldzsBd.bmqtZy + item.bmldzsBd.bmqtJwsj + item.bmldzsBd.bmqtQt
                  this.bd[index].sum2 = item.bmldzsBd.nsqtZzbzr + item.bmldzsBd.nsqtZs + item.bmldzsBd.nsqtZy + item.bmldzsBd.nsqtJwsj + item.bmldzsBd.nsqtQt
                }
                this.bd[index].sum0 = item.czbkbzrs + item.jfzlbzrs
                this.bd[index].sum3 = item.cayjgxzSt + item.caewSt + item.caypSt + item.caltSt + item.caqtSt
                this.bd[index].sum4 = item.cazwslgSt + item.cazwfwjjgSt + item.cazwcbSt
              })
              this.dwbd = alldata.centre_sy_dwbd
              this.dwbd.forEach((item, index) => {
                if (item.bmldzsBd) {
                  this.dwbd[index].bmldbz = item.bmldzsBd.bmldzzbz + item.bmldzsBd.bmldfzbz
                  this.dwbd[index].nsldbz = item.bmldzsBd.nsldzzbz + item.bmldzsBd.nsldfzbz
                  this.dwbd[index].bmqtZzbzr = item.bmldzsBd.bmqtZzbzr
                  this.dwbd[index].bmqtZs = item.bmldzsBd.bmqtZs
                  this.dwbd[index].bmqtZy = item.bmldzsBd.bmqtZy
                  this.dwbd[index].bmqtJwsj = item.bmldzsBd.bmqtJwsj
                  this.dwbd[index].bmqtQt = item.bmldzsBd.bmqtQt
                  this.dwbd[index].nsqtZzbzr = item.bmldzsBd.nsqtZzbzr
                  this.dwbd[index].nsqtZs = item.bmldzsBd.nsqtZs
                  this.dwbd[index].nsqtZy = item.bmldzsBd.nsqtZy
                  this.dwbd[index].nsqtJwsj = item.bmldzsBd.nsqtJwsj
                  this.dwbd[index].nsqtQt = item.bmldzsBd.nsqtQt
                  this.dwbd[index].sum0 = item.czbkbzrs + item.jfzlbzrs
                  this.dwbd[index].sum1 = item.bmldzsBd.bmqtZzbzr + item.bmldzsBd.bmqtZs + item.bmldzsBd.bmqtZy + item.bmldzsBd.bmqtJwsj + item.bmldzsBd.bmqtQt
                  this.dwbd[index].sum2 = item.bmldzsBd.nsqtZzbzr + item.bmldzsBd.nsqtZs + item.bmldzsBd.nsqtZy + item.bmldzsBd.nsqtJwsj + item.bmldzsBd.nsqtQt
                }
                this.dwbd[index].sum3 = item.cayjgxzSt + item.caewSt + item.caypSt + item.caltSt + item.caqtSt
                this.dwbd[index].sum4 = item.cazwslgSt + item.cazwfwjjgSt + item.cazwcbSt
              })
            } else if (sourceTable === 'depart') {
              this.unitInfo = (alldata.depart && alldata.depart.length > 0) ? alldata.depart[0] : {}
              this.dwbd = alldata.centre_dwbd
              this.jgznDesp = alldata.jgznDesp
              if (this.dwbd) {
                this.dwbd.forEach((item, index) => {
                  if (item.bmldzsBd) {
                    this.dwbd[index].bmldbz = item.bmldzsBd.bmldzzbz + item.bmldzsBd.bmldfzbz
                    this.dwbd[index].nsldbz = item.bmldzsBd.nsldzzbz + item.bmldzsBd.nsldfzbz
                    this.dwbd[index].bmqtZzbzr = item.bmldzsBd.bmqtZzbzr
                    this.dwbd[index].bmqtZs = item.bmldzsBd.bmqtZs
                    this.dwbd[index].bmqtZy = item.bmldzsBd.bmqtZy
                    this.dwbd[index].bmqtJwsj = item.bmldzsBd.bmqtJwsj
                    this.dwbd[index].bmqtQt = item.bmldzsBd.bmqtQt
                    this.dwbd[index].nsqtZzbzr = item.bmldzsBd.nsqtZzbzr
                    this.dwbd[index].nsqtZs = item.bmldzsBd.nsqtZs
                    this.dwbd[index].nsqtZy = item.bmldzsBd.nsqtZy
                    this.dwbd[index].nsqtJwsj = item.bmldzsBd.nsqtJwsj
                    this.dwbd[index].nsqtQt = item.bmldzsBd.nsqtQt
                    this.dwbd[index].sum1 = item.bmldzsBd.bmqtZzbzr + item.bmldzsBd.bmqtZs + item.bmldzsBd.bmqtZy + item.bmldzsBd.bmqtJwsj + item.bmldzsBd.bmqtQt
                    this.dwbd[index].sum2 = item.bmldzsBd.nsqtZzbzr + item.bmldzsBd.nsqtZs + item.bmldzsBd.nsqtZy + item.bmldzsBd.nsqtJwsj + item.bmldzsBd.nsqtQt
                  }
                  this.dwbd[index].sum3 = item.cayjgxzSt + item.caewSt + item.caypSt + item.caltSt + item.caqtSt
                  this.dwbd[index].sum4 = item.cazwslgSt + item.cazwfwjjgSt + item.cazwcbSt
                })
              }
            }
            this.lxfs = (alldata.lxfs && alldata.lxfs.length > 0) ? alldata.lxfs[0] : {}
          } else {
            console.log(response.data.message)
          }
        })
        .catch(error => {
          console.log(error)
          this.loadingtext = '网络获取失败'
        })
    }
  },
  mounted () {
  }
}
</script>
<style>

#bzUnitDetail .mytable{
  border-top: 1px solid #74A6CC;
  border-left: 1px solid #74A6CC;
  margin: 10px;
  width: calc(100% - 20px);
  font-size:var(--size14) !important;
  font-family: '宋体'
}
#bzUnitDetail .mytable th,
#bzUnitDetail .mytable td{
  padding: 10px;
  border-right: 1px solid #74A6CC;
  border-bottom: 1px solid #74A6CC;
  vertical-align:top;
  line-height: 150%;
  height: 22px;
}
#bzUnitDetail .mytable th{
  background:#C0DCF1;
  width:150px;
  vertical-align: middle;
}
#bzUnitDetail .mytablecol2 th{
  width:130px !important;
}
  #bzUnitDetail .wboxd{
    padding:0;
    width: 100%;
    background: #fff;
    border: 1px solid #95B8E7;
    margin:0;
    overflow: hidden;
  }
  #bzUnitDetail .wboxd .el-table th{
    font-weight: normal;
    background-image: linear-gradient(to bottom , #f8f8f8, #efefef);
  }
  #bzUnitDetail .wboxd .el-table td{
    padding:0;
    font-size:var(--size14) !important;
    line-height: 20px;
    font-family: '宋体'
  }
  #bzUnitDetail .wboxd .el-table td,
  #bzUnitDetail .wboxd .el-table th{
    border-right: 1px solid #95B8E7;
    border-bottom: 1px solid #95B8E7;
  }
  /* /deep/ 为深度操作符，可以穿透到子组件 */
  #bzUnitDetail .el-table {
  display: flex;
  flex-direction: column;
}
#bzUnitDetail .el-table__body-wrapper {
  order: 1;
}
#bzUnitDetail .el-table .cell{
  padding-left:0 !important;
  padding-right:0 !important;
}
</style>
